<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="perm" uri="/WEB-INF/tld/perm.tld"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<script>
	var ctx = "${ctx}";
</script>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>评论</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
	<meta http-equiv="expires" content="Wed, 26 Feb 209908:21:57 GMT"> 
   
	<link href="${ctx}/static/css/bootstrap.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/font-awesome.min.css?v=4.4.0?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/animate.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/style.min.css?v=${static_version}" rel="stylesheet" />
	<link href="${ctx}/static/css/common.css?v=${static_version}" rel="stylesheet" />
	<link href="//at.alicdn.com/t/font_9x03jhokyws9vn29.css" rel="stylesheet">
	<!-- Data Tables -->
	<link href="${ctx}/static/css/plugins/dataTables/dataTables.bootstrap.css?v=${static_version}" rel="stylesheet" />
    
</head>
<body class="gray-bg">
<div class="pd-20">
	<form action="${ctx}/article/u_article_reply-add" method="post" class="form form-horizontal" id="form-u_article_reply-add">
		<input type="hidden" id="id" name="id" value='${u_article_reply.id}' />
        
        <div class="row cl">
			<label class="form-label col-2">评论人：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.to_uname}" placeholder="" id="" name="to_uname" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">发布人：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.user_name}" placeholder="" id="" name="user_name" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">回复内容：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.reply_content}" placeholder="" id="" name="reply_content" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">发表时间：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.add_time}" placeholder="" id="" name="add_time" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
       <%--  <div class="row cl">
			<label class="form-label col-2">发布人ID：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.user_id}" placeholder="" id="" name="user_id" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">发布人名：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.user_name}" placeholder="" id="" name="user_name" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">回复谁的ID：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.to_uid}" placeholder="" id="" name="to_uid" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">回复谁名：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.to_uname}" placeholder="" id="" name="to_uname" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">删除 0未， 1是：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.is_delete}" placeholder="" id="" name="is_delete" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.ext1}" placeholder="" id="" name="ext1" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.ext2}" placeholder="" id="" name="ext2" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.ext3}" placeholder="" id="" name="ext3" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.ext4}" placeholder="" id="" name="ext4" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${u_article_reply.ext5}" placeholder="" id="" name="ext5" datatype="*" nullmsg="不能为空">
        	</div>
		</div> --%>
        
		<div class="row cl">
			<div class="col-10 col-offset-2">
				<button onClick="u_article_reply_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
<script src="${ctx}/static/js/jquery.min.js"></script>
	<script src="${ctx}/static/js/bootstrap.min.js"></script>

	<!-- 插件脚本 -->
	<script src="${ctx}/static/js/plugins/layer/layer.js"></script>	
	<script src="${ctx}/static/js/jquery.form.js"></script>
	<script src="${ctx}/static/js/plugins/webuploader/webuploader.min.js"></script>
	<script src="${ctx}/static/js/plugins/validate/jquery.validate.min.js"></script>
	<script src="${ctx}/static/js/Validform/5.3.2/Validform.min.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="${ctx}/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>	
	<script type="text/javascript" src="${ctx}/static/js/plugins/markdown/markdown.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/plugins/markdown/to-markdown.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/plugins/markdown/bootstrap-markdown.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/plugins/markdown/bootstrap-markdown.zh.js"></script>
    <script type="text/javascript" charset="utf-8"src="${ctx}/static/js/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"src="${ctx}/static/js/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript">

function u_article_reply_save_submit(){
	$("#form-u_article_reply-add").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(form){
			var index = parent.layer.getFrameIndex(window.name);
			if (index){//关闭弹出层
				parent.$('.btn-refresh').click(); 
				parent.layer.close(index);
			}else{//单独的页面
				location.href = "${ctx}/article/u_article_reply-list"; 
			}
		}
	});
}

</script>
</body>
</html>

